<script type="text/javascript">
    function changePassPopup() {
        window.open( "changePass.php", "Đổi Mật Khẩu", 
        "status = 1, height = 250, width = 340, resizable = 0" )
    }
            
</script>
<!-- Header -->
<div id="header">
    <div class="shell">
        <!-- Logo + Top Nav -->
        <div id="top">
            <h1 style="color:orange !important">Office Lunch</h1>
            <div id="top-navigation">
                Xin chào <strong><?php echo $_SESSION["user"]; ?></strong>
                <span>|</span>
                <a href="" onclick="changePassPopup()">Đổi Mật Khẩu</a>
                <span>|</span>
                <a href="../action/logoutAction.php">Thoát</a>
            </div>
        </div>
        <!-- End Logo + Top Nav -->

        <!-- Main Nav -->
        <div id="navigation">
            <ul>
            	<?php
                	$url = basename($_SERVER['PHP_SELF']);
					$class = " class=\"active\"";
					
					$index = "";
					$introduction = "";
					$addIntroduction = "";
					$introductionDetail = "";
					$recruitment = "";
					$addRecruitment = "";
					$recruitmentDetail = "";
					$user = "";
					$addUser = "";
					$category = "";
					$addCategory = "";
					$categoryDetail = "";
					$dish = "";
					$addDish = "";
					$editDish = "";
					$menu = "";
					
					switch($url){
						case "index.php": $index = "1"; break;
						case "introduction.php": $introduction = "1"; break;
						case "addIntroduction.php": $addIntroduction = "1"; break;
						case "introductionDetail.php": $introductionDetail = "1"; break;
						case "recruitment.php": $recruitment = "1"; break; 
						case "addRecruitment.php": $addRecruitment = "1"; break;
						case "recruitmentDetail.php": $recruitmentDetail = "1"; break;
						case "user.php": $user = "1"; break;
						case "addUser.php": $addUser = "1"; break;
						case "category.php": $category = "1"; break;
						case "addCategory.php": $addCategory = "1"; break;
						case "categoryDetail.php": $categoryDetail = "1"; break;
						case "dish.php": $dish = "1"; break;
						case "addDish.php": $addDish = "1"; break;
						case "editDish.php": $editDish = "1"; break;
						case "menu.php": $menu = "1"; break;
					}
				?>
                <li><a href="index.php" <?php if($index!="")echo $class;?>><span>Bảng Điều Khiển</span></a></li>
                <li><a href="introduction.php" <?php if($introduction!=""||$addIntroduction!=""||$introductionDetail!="")echo $class;?>><span>Giới thiệu</span></a></li>
                <li><a href="recruitment.php" <?php if($recruitment!=""||$recruitmentDetail!=""||$addRecruitment!="")echo $class;?>><span>Tuyển dụng</span></a></li>
                <li><a href="user.php" <?php if($user!=""||$addUser!="")echo $class;?>><span>Tài khoản người dùng</span></a></li>
                <li><a href="category.php" <?php if($category!=""||$addCategory!=""||$categoryDetail!="")echo $class;?>><span>Loại thức ăn</span></a></li>
                <li><a href="dish.php" <?php if($dish!=""||$addDish!=""||$editDish!="")echo $class;?>><span>Món Ăn</span></a></li>
                <li><a href="menu.php" <?php if($menu!="")echo $class;?>><span>Thực Đơn</span></a></li>
            </ul>
        </div>
        <!-- End Main Nav -->
    </div>
</div>
<!-- End Header -->